package kibahed.university.effizientealgorithmen.fileinteractions;

import java.util.Set;

import kibahed.university.effizientealgorithmen.interfaces.AAlgorithm;

import org.reflections.Reflections;

public class AlgorithmLoader {
	
	private static final String LOCATION = "kibahed.university.effizientealgorithmen.algortihms";
	
	public static Set<Class<? extends AAlgorithm>> getAlgorithms(){
		System.out.println("Starting to Reflect");
		Reflections reflections = new Reflections(LOCATION);
		Set<Class<? extends AAlgorithm>> classes = reflections.getSubTypesOf(AAlgorithm.class);
		for(Class<? extends AAlgorithm> myClass:classes){
			System.out.println("Loaded Class: "+myClass.getSimpleName());
		}
		return classes;
	}

}
